util-linux.git
3 years ago[PATCH 06/24] lib/procfs: add function to parse /proc/#/stat
Karel Zak [Thu, 11 Aug 2022 08:56:02 +0000 (10:56 +0200)]
[PATCH 06/24] lib/procfs: add function to parse /proc/#/stat

Signed-off-by: Karel Zak <kzak@redhat.com>
Gbp-Pq: Topic upstream
Gbp-Pq: Name 0006-lib-procfs-add-function-to-parse-proc-stat.patch

3 years ago[PATCH 05/24] lsblk: fix endless loop if device specified more than once
Karel Zak [Mon, 19 Sep 2022 12:23:25 +0000 (14:23 +0200)]
[PATCH 05/24] lsblk: fix endless loop if device specified more than once

Fixes: https://github.com/util-linux/util-linux/issues/1814
Signed-off-by: Karel Zak <kzak@redhat.com>
Gbp-Pq: Topic upstream
Gbp-Pq: Name 0005-lsblk-fix-endless-loop-if-device-specified-more-than.patch

3 years ago[PATCH 04/24] libuuid: check clock value from LIBUUID_CLOCK_FILE
Michael Trapp [Tue, 2 Aug 2022 12:16:43 +0000 (14:16 +0200)]
[PATCH 04/24] libuuid: check clock value from LIBUUID_CLOCK_FILE

The clock value from the LIBUUID_CLOCK_FILE must be checked in
case of an update of libuuid. If clock==CLOCK_SEQ_CONT it must
be set to a new value.

Signed-off-by: Karel Zak <kzak@redhat.com>
Gbp-Pq: Topic upstream
Gbp-Pq: Name 0004-libuuid-check-clock-value-from-LIBUUID_CLOCK_FILE.patch

3 years ago[PATCH 03/24] uuidd: fix random UUIDs
Karel Zak [Mon, 10 Oct 2022 07:37:51 +0000 (09:37 +0200)]
[PATCH 03/24] uuidd: fix random UUIDs

Commit f27876f introduces copy & past bug and replaces
__uuid_generate_random() with __uuid_generate_time().

Fixes: https://github.com/util-linux/util-linux/issues/1837
Signed-off-by: Karel Zak <kzak@redhat.com>
Gbp-Pq: Topic upstream
Gbp-Pq: Name 0003-uuidd-fix-random-UUIDs.patch

3 years ago[PATCH 02/24] libuuid: Implement continuous clock handling for time based UUIDs
Michael Trapp [Mon, 20 Jun 2022 15:10:36 +0000 (17:10 +0200)]
[PATCH 02/24] libuuid: Implement continuous clock handling for time based UUIDs

In a uuidd setup, the daemon is a singleton and can maintain it's own
resources for time based UUID generation. This requires a dedicated
'clock sequence range' but does not need any further lock/update of
the LIBUUID_CLOCK_FILE from uuidd. The range of available clock values
is extended by a continuous handling of the clock updates - instead of
updating the value to the current timestamp, it is incremented by
the number of requested UUIDs.

Gbp-Pq: Topic upstream
Gbp-Pq: Name 0002-libuuid-Implement-continuous-clock-handling-for-time.patch

3 years ago[PATCH 01/24] lib/path: ul_path_cpuparse: fix parsing of empty sysfs files
Petr Štetiar [Thu, 22 Sep 2022 09:49:13 +0000 (11:49 +0200)]
[PATCH 01/24] lib/path: ul_path_cpuparse: fix parsing of empty sysfs files

Kernel 5.15 returns empty content for topology/thread_siblings on
aarch64 platform, which in conjunction of uninitialized `buf` memory
buffer results in the garbage:

 (gdb) p buf
 $14 = " @\377\367\177\000\000\000\275\000\347j\032\236"

This garbage is then being later consumed by underlying helper functions
like for example cpumask_parse() and this leads to the following crash
later:

 in __libc_free (p=0x7ff7f67c00) at src/malloc/mallocng/free.c:105
 in free (p=<optimized out>) at src/malloc/free.c:5
 in add_cpuset_to_array (setsize=<optimized out>, set=<optimized out>, items=<optimized out>, ary=<optimized out>) at ../sys-utils/lscpu-topology.c:29
 in cputype_read_topology (cxt=cxt@entry=0x7ff7fffe70, ct=0x4298a0) at ../sys-utils/lscpu-topology.c:153
 in lscpu_read_topology (cxt=cxt@entry=0x7ff7fffe70) at ../sys-utils/lscpu-topology.c:629
 in main (argc=1, argv=0x7ffffffdb8) at ../sys-utils/lscpu.c:1341

It looks like the problem is that current logic expects fgets() to set
errno on failure, but fgets() is not documented to do so and and neither
glibc nor musl set errno.  So if errno was set to 0 before fgets() call,
the failure from fgets() is ignored and then invalid buffer is being
parsed.

Fixes: #1810
Suggested-by: Thomas Weißschuh <thomas@t-8ch.de>
Signed-off-by: Petr Štetiar <ynezz@true.cz>
Gbp-Pq: Topic upstream
Gbp-Pq: Name 0001-lib-path-ul_path_cpuparse-fix-parsing-of-empty-sysfs.patch

3 years agoUse sensible-pager
Chris Hofstaedtler [Thu, 14 Jul 2022 09:54:01 +0000 (09:54 +0000)]
Use sensible-pager

Closes: #1014368
Gbp-Pq: Topic debian
Gbp-Pq: Name sensible-pager.patch

3 years agoInstall lsfd into /usr/bin
Chris Hofstaedtler [Thu, 14 Apr 2022 11:47:20 +0000 (11:47 +0000)]
Install lsfd into /usr/bin

Gbp-Pq: Topic debian
Gbp-Pq: Name lsfd-usrbin.patch

3 years agohardlink tests: set known failed
Chris Hofstaedtler [Tue, 12 Apr 2022 20:35:57 +0000 (20:35 +0000)]
hardlink tests: set known failed

sha256 cannot be initialized on some archs / buildds.

Gbp-Pq: Topic debian
Gbp-Pq: Name hardlink-tests-known-failed.patch

3 years agoUse non-deprecated chown syntax
Chris Hofstaedtler [Tue, 12 Apr 2022 15:41:05 +0000 (15:41 +0000)]
Use non-deprecated chown syntax

Closes: #1007139
Gbp-Pq: Topic debian
Gbp-Pq: Name chown-non-deprecated.patch

3 years agoverbose-tests
Andreas Henriksson [Wed, 30 Jul 2014 12:28:17 +0000 (14:28 +0200)]
verbose-tests

Enable verbose tests and print content of failing tests output file.

Gbp-Pq: Topic debian
Gbp-Pq: Name verbose-tests.patch

3 years agoutil-linux: getopt(1) should point to where examples are on a Debian system
Matthew Vernon [Tue, 6 Nov 2018 11:49:21 +0000 (11:49 +0000)]
util-linux: getopt(1) should point to where examples are on a Debian system

Debian BTS #913049

Gbp-Pq: Topic debian
Gbp-Pq: Name man-getopt-examples.patch

3 years agoutil-linux (2.38.1-3) unstable; urgency=medium
Chris Hofstaedtler [Sat, 19 Nov 2022 15:48:44 +0000 (15:48 +0000)]
util-linux (2.38.1-3) unstable; urgency=medium

  * Apply "rfkill: (man) List options for supported device types"
    (Closes: #1019007)
  * Apply "lib/pty: Put master PTY into non-blocking mode and buffer its output to avoid deadlock"
    (Closes: #1003095)
  * Gift /var/lib/libuuid to uuid-runtime.  uuidd should be its only user, and
    this should avoid piuparts errors.
  * Remove pre-stable NEWS entries

[dgit import unpatched util-linux 2.38.1-3]

3 years agoImport util-linux_2.38.1-3.debian.tar.xz
Chris Hofstaedtler [Sat, 19 Nov 2022 15:48:44 +0000 (15:48 +0000)]
Import util-linux_2.38.1-3.debian.tar.xz

[dgit import tarball util-linux 2.38.1-3 util-linux_2.38.1-3.debian.tar.xz]

3 years agoImport util-linux_2.38.1.orig.tar.xz
Chris Hofstaedtler [Thu, 4 Aug 2022 16:18:17 +0000 (17:18 +0100)]
Import util-linux_2.38.1.orig.tar.xz

[dgit import orig util-linux_2.38.1.orig.tar.xz]